﻿namespace Digitalmes.AvaloniaUI.Controls;

/// <summary>
/// Led 画布数据源。
/// </summary>
public sealed class LedCanvasSource : ObservableObject
{
    /// <summary>
    /// 画布名称
    /// </summary>
    public string Name { get; set; } = string.Empty;

    /// <summary>
    /// 图片相对路径，如 "Resources/Images/01.png";
    /// </summary>
    public string? ImagePath { get; set; }

    /// <summary>
    /// 画布宽度
    /// </summary>
    public double Width { get; set; }

    /// <summary>
    /// 画布高度
    /// </summary>
    public double Height { get; set; }

    /// <summary>
    /// 画布数据点集合
    /// </summary>
    public List<LedPoint> Points { get; set; } = [];
}
